import request from "@/utils/request"

export default {
  // 详情
  detail(params) {
    return request({
      baseURL: window.APP_GETEWAY.owpmc,
      url: `/v1/purchase-demand/intelligent-stock/get-basic-rule`,
      method: "get",
      params,
    })
  },
  // 保存
  save(data) {
    return request({
      baseURL: window.APP_GETEWAY.owpmc,
      url: `/v1/purchase-demand/intelligent-stock/basic-rule`,
      method: "post",
      data,
    })
  },
}
